package com.woniu.atms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * (G5Passenger)实体类
 *
 * @author makejava
 * @since 2022-01-17 14:25:28
 */
public class G5Passenger implements Serializable {
    private static final long serialVersionUID = -20135916123377749L;
    @TableId(type = IdType.AUTO)
    private Integer id;
    @NotNull(message = "姓名不能为null")
    @NotBlank(message = "姓名不能为空字符串")
    @Size(max = 20,min = 1,message = "姓名长度必须在1-20个字符之间")
    private String name;
    @NotNull(message = "性别不能为null")
    @NotBlank(message = "性别不能为空字符串")
    @Size(max = 1,min = 1,message = "性别必须为1个字符")
    private String gender;
    @NotNull(message = "身份证号不能为null")
    @NotBlank(message = "身份证号不能为空字符串")
    @Size(max = 18,min = 18,message = "身份证号必须是18个字符")
    private String idCard;
    @NotNull(message = "手机号不能为null")
    @NotBlank(message = "手机号不能为空字符串")
    @Size(max = 11,min = 11,message = "手机号必须是11位数字")
    private String telephone;
    @NotNull(message = "邮箱不能为null")
    @NotBlank(message = "邮箱不能为空字符串")
    @Email(message = "邮箱格式不正确")
    private String email;

    private Integer userId;

    private String isOk;

    private String isExit;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getIsOk() {
        return isOk;
    }

    public void setIsOk(String isOk) {
        this.isOk = isOk;
    }

    public String getIsExit() {
        return isExit;
    }

    public void setIsExit(String isExit) {
        this.isExit = isExit;
    }

}

